package cn.meibang.aggragation.beauty.controller;

import cn.apestar.agg.common.security.BaseAuthController;
import cn.meibang.common.beauty.api.IBcoUserConsultantLatestAPIService;
import cn.meibang.common.beauty.provider.request.ListBcoUserConsultantLatestRequest;
import cn.meibang.common.beauty.provider.response.BcoUserConsultantLatestResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * Created by admin on 2017-6-24.
 */
@RestController
@RequestMapping("/bcouserConsultantLatest")
public class BcoUserConsultantLatestController extends BaseAuthController {

    @Autowired
    private IBcoUserConsultantLatestAPIService bcoUserConsultantLatestAPIService;

    /**
     * 门店最近选择的咨询师列表
     *
     * @param request
     * @return
     */
    @RequestMapping(value = "/list", method = RequestMethod.POST)
    public List<BcoUserConsultantLatestResponse> list(@RequestBody ListBcoUserConsultantLatestRequest request) {
        return bcoUserConsultantLatestAPIService.list(request);
    }

}
